﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Ruanmou.SOA.UnitTestProject
{
    /// <summary>
    /// 返回集合可以在配置服务中设置
    /// 
    /// 
    /// </summary>
    [TestClass]//单元测试必备
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            using (MyWebServiceTest.MyWebServiceSoapClient serviceSoapClient = new MyWebServiceTest.MyWebServiceSoapClient())
            {
                string str = serviceSoapClient.GetName("123");
                List<MyWebServiceTest.UserInfo> listUser = serviceSoapClient.GetUserList();
            }
        }
        [TestMethod]
        public void TestMethod2()
        {
            using (MyWebServiceTest.MyWebServiceSoapClient serviceSoapClient = new MyWebServiceTest.MyWebServiceSoapClient())
            {
                string str = serviceSoapClient.GetName("123");
                Assert.AreEqual(str, "2222");
                List<MyWebServiceTest.UserInfo> listUser = serviceSoapClient.GetUserList();
            }
        }
    }
}
